/*
 * Screen.h
 *
 *  Created on: May 23, 2021
 *      Author: user
 */

#ifndef SCREEN_H_
#define SCREEN_H_

#include "stdint.h"

#define Time_TextBoxAddr (0x0096U)
#define AlarmLog1_TextBoxAddr (0x041BU)
#define AlarmLog2_TextBoxAddr (0x011BU)
#define AlarmLog3_TextBoxAddr (0x021BU)
#define AlarmLog4_TextBoxAddr (0x031BU)
#define TempLimit_NumBoxAddr  (0x0031U)
#define TempRT_NumBoxAddr     (0x0020U)

typedef enum{NoneButtonPushed, ButtonDecrease, ButtonIncrease} ButtonType;

void displayText(uint16_t addr, const char* text, uint8_t text_length);
void displayNum(uint16_t addr, float data);
ButtonType recieveButtonPushed(void);

// 在USART3中断服务函数内接受数据(通过多次进入中断完成)
void ReceiveDataITService(void);

#endif /* SCREEN_H_ */
